import { createApp } from "vue";
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import App from "./App.vue";
import { setupRouter } from "@/plugins/router";
import { setupStore } from "@/plugins/pinia";
import { setupToast } from "./plugins/toast";


import { Picker, Popup, OverLay } from '@nutui/nutui';

import "animate.css";
import "./style.scss";
import "@nutui/nutui/dist/style.css";

const app = createApp(App);

// 挂载状态管理
setupStore(app);

// 挂载路由
setupRouter(app);

// 路由准备就绪后挂载 APP 实例
// await router.isReady();

// 引入函数组件的样式

// 挂载 Toast
setupToast(app);
app.use(ElementPlus)

app.use(Picker);
app.use(Popup);
app.use(OverLay);

app.mount("#app");
